      <td>
        <?php echo $payment->getPaymentDate()?>
      </td>
      <td>
        <?php 
          $link_id = 'link_payment_'.$payment->getPaymentIden();
          echo 
            link_to(
              $payment->getPaymentId(),
              'payment/edit?payment_iden='.$payment->getPaymentIden(),
              array('id'=>$link_id,)
            );
        ?>
        <script language="javascript">
          $(document).ready(function(){
          $('#<?php echo $link_id?>').click(
            function(e){
              $.get(this.href,{},
                function(content){
                  $('#ajPaymentPanel').show().html(content);
                  $('#ajPaymentGrid').hide();
                  $('#ajPaymentShowGrid').show();
                }
             );
             e.preventDefault();
           }
         );
         });
        </script>
      </td>
      <td>
        <?php echo $payment->getListName()?>
      </td>
      <td style="text-align:right;">
        <?php echo number_format($payment->getCash(),2)?>
      </td>
      <td style="text-align:right;">
        <?php echo number_format($payment->getCheckTotal(),2)?>
      </td>
      <td style="text-align:right;">
        <?php echo number_format($payment->getInvoiceTotal(),2)?>
      </td>
      <td style="text-align:right;">
        <?php echo number_format($payment->getTotalPayment() - $payment->getInvoiceTotal(),2)?>
      </td>
      <td style="text-align:center;">
        <?php echo $payment->getDocument()->getVoid()?>
      </td>
      <td>
      </td>